package com.project.controller;

import com.project.bean.UserBean1;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

@RestController
@RequestMapping("my")//别名自己取
//类名记着自己改一下
public class MyController {

    @RequestMapping("getBean")
    public UserBean1 getBean(){
        return new UserBean1(3,"萧红", LocalDate.parse("1998-09-08"));
    }
}